{% extends "base.html" %}
{% load staticfiles %}
{% block title %} 价格管理 {% endblock %}
{% block css %}
	{% include "common/_stylesheets.html" %}
{% endblock %}

{% block content %}
<div class="">
    <div class="page-title">
      <div class="title_left">
        <h3> 价格管理 </h3>
      </div>
    </div>
    
    <div class="clearfix"></div>
    
    <div class="row">
      <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="x_panel">
          <div class="x_title">
            <h2>添加计费项 <!-- <small>different form elements</small> --></h2>
            <ul class="nav navbar-right">
	            <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
	            </li>
	        </ul>
            <div class="clearfix"></div>
          </div>
          <div class="x_content">
            <br />
            {% if request.session.usertype == 1 %}
            <form id="demo-form2" data-parsley-validate class="form-horizontal form-label-left"  action="{% url 'price_add' %}" method="post">
				{% csrf_token %}
              <div class="form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="price_name"> 计费项名称 <span class="required">*</span>
                </label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                  <input type="text" id="price_name" name="price_name" required="required" class="form-control col-md-7 col-xs-12">
                </div>
              </div>
              <div class="form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="unit">计量单位 <span class="required">*</span>
                </label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                  <input type="text" id="unit" name="unit" required="required" class="form-control col-md-7 col-xs-12">
                </div>
              </div>
              <div class="form-group">
                <label for="unit_price" class="control-label col-md-3 col-sm-3 col-xs-12">单价 <span class="required">*</span></label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                  <input type="text" id="unit_price" class="form-control col-md-7 col-xs-12" required="required"  name="unit_price">
                </div>
              </div>
              <div class="ln_solid"></div>
              <div class="form-group">
                <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                    <button class="btn btn-primary" type="button">取消</button>
                    <button type="submit" class="btn btn-success">确认</button>
                </div>
              </div>
            </form>
            {% else %}
            	权限不通过
            {% endif %}
          </div>
        </div>
      </div>
    </div>
</div>
{% endblock  %}
{% block js %} 
	{% include "common/_js.html" %}
{% endblock %}